

module Core
	
	def Core.Buffer()

	end
	
	
	def Core.MSG(where, what)
		$irccon.Write("PRIVMSG "+where+" :"+what)
	end
	
	
	def Core.NOTICE(where, what)
		$irccon.Write("NOTICE "+where+" :"+what)
	end
	
	
	def Core.ACTION(where, what)
		$irccon.Write("PRIVMSG "+where+" :\001ACTION "+what)
	end
	
	def Core.JOIN(where, pass="")
		$irccon.Write("JOIN "+where+" :"+pass)
	end
	
	
	def Core.PART(where, why="No Reason")
		$irccon.Write("PART "+where+" :"+why)
	end
	
	
	def Core.QUIT(why="No Reason")
		$irccon.Write("quit :"+why)
	end
	
	
	def Core.CYCLE(where)
		$irccon.Write("CYCLE "+where)
	end
	
	
	def Core.INVITE(who, where)
		$irccon.Write("INVITE "+who+" "+where)
	end
	
	
	def Core.KICK(who, where, why="No Reason")
		$irccon.Write("KICK "+where+" "+who+" :"+why)
	end
	
	
	def Core.KNOCK(where)
		$irccon.Write("KNOCK "+where)
	end
	
	
	def Core.LIST()
		$irccon.Write("LIST")
	end
	
	
	def Core.MODE(where, what, who="")
		$irccon.Write("JOIN "+where+" "+what+" "+who)
	end
	
	
	def Core.NICK(newnick)
		$irccon.Write("NICK "+newnick)
	end
	
	
	def Core.TOPIC(where, what)
		$irccon.Write("TOPIC "+where+" :"+what)
	end
	
end
